import React from 'react'
import { useNavigate } from "react-router-dom";


export default function Home(props) {
    let navigate = useNavigate();
    function handleClick() {
        navigate("/mine");
    }
    return (
        <div>
            <h1>Home</h1>
            <button onClick={handleClick}>跳转</button>
        </div>
    )
}
